package com.demo.design.behavioral.state.impl;

import com.demo.design.behavioral.state.CandyMachine;
import com.demo.design.behavioral.state.State;

public class HasMoneyState implements State {

    private CandyMachine candyMachine;

    public HasMoneyState(CandyMachine candyMachine) {
        this.candyMachine = candyMachine;
    }

    @Override
    public void insertCoins() {
        System.err.println("已投币,无需再投币");
    }

    @Override
    public void takeBackCoins() {

    }

    @Override
    public void turnCrank() {

    }

    @Override
    public void dispense() {

    }
}
